﻿
/*
 * Copyright (C) Han Wei
 */


using System;


namespace BSvr.PluginAPI
{
    /// <summary>
    /// 业务启动异常
    /// </summary>
    public class PluginStartException:Exception
    {
        private DateTime _occurTime = DateTime.Now;
        
        /// <summary>
        /// 业务编号
        /// </summary>
        public string   PluginNo { get; set; }

        /// <summary>
        /// 异常发生时间
        /// </summary>
        public DateTime OccurTime { get { return this._occurTime; } }

        /// <summary>
        /// 构造方法
        /// </summary>
        /// <param name="pluginNo">发生异常的业务编号</param>
        /// <param name="msg">异常内容</param>
        PluginStartException(string pluginNo, string msg) : base(msg) {
            this.PluginNo = pluginNo;

            this._occurTime = DateTime.Now;
        }
    }
}
